package SQL.abysnSQL;

/*
 * 		
colname ::= ID:i		{:RESULT = new ColName(i);:}|
		ID:i DOT colname:cn		{:RESULT = new ColName(i,cn);:};
 */

public class ColName {
	public String tName;
	public String name;
	public ColName cName;
	
	public ColName(String i){
		name = i;
	}
	
	public ColName(String i,ColName cn){
		tName = i;
		cName = cn;
	}
	
	public String toString(){
		if(name != null){
			return name;
		}
		else
			return tName+"."+cName.toString();
	}
}
